import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
    routes: [{
            path: '/train',
            name: 'train-page',
            component: require('@/components/TrainPage').default
        },
        {
            path: '/trip',
            name: 'trip-page',
            component: require('@/components/TripPage').default
        },
        {
            path: '/trip/add',
            name: 'trip-add',
            component: require('@/components/TripPage/Model').default
        },
        {
            path: '*',
            redirect: '/trip'
        }
    ]
})